home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / TeXsource / commontex / h / page < prev    next >
Encoding:
Text File  |  1988-04-08  |  1.5 KB  |  78 lines

  1. /*
  2.  *    Copyright 1986, 1987 Pat Joseph Monardo. All rights reserved.
  3.  *    Copying of this file is granted according to the provisions 
  4.  *    specified in the file COPYING which must accompany this file.
  5.  */
  6.  
  7.  
  8. /*
  9.  *        page.h
  10.  */
  11.  
  12. global    ptr        last_page_glue;
  13.  
  14. #define    active_height    active_width
  15. #define    cur_height        active_height[1]
  16.  
  17. ptr        prune_page_top();
  18.  
  19. global    scal    best_height_plus_depth;
  20. #define    DEPLORABLE        100000
  21.  
  22. ptr        vert_break();
  23. ptr        vsplit();
  24.  
  25. global    ptr        page_tail;
  26. global    int        page_contents;
  27.  
  28. #define    INSERTS_ONLY    1
  29. #define    BOX_THERE        2
  30.  
  31. global    ptr        best_page_break;
  32. global    scal    best_size;
  33. global    scal    page_max_depth;
  34. global    val        least_page_cost;
  35.  
  36. #define    INSERTING                0
  37. #define    SPLIT_UP                1
  38. #define    broken_ptr(N)            link(N + 1)
  39. #define    broken_ins(N)            info(N + 1)
  40. #define    last_ins_ptr(N)            link(N + 2)
  41. #define    best_ins_ptr(N)            info(N + 2)
  42. #define    PAGE_INS_NODE_SIZE        4
  43.  
  44. global    scal    page_so_far[];
  45.  
  46. #define    page_goal    page_so_far[0]
  47. #define    page_total    page_so_far[1]
  48. #define    page_shrink    page_so_far[6]
  49. #define    page_depth    page_so_far[7]
  50.  
  51. global    ptr        last_glue;
  52. global    val        last_penalty;
  53. global    scal    last_kern;
  54. global    val        insert_penalties;
  55.  
  56. int        print_totals();
  57.  
  58. #define    start_new_page() \
  59.     {page_contents = EMPTY; \
  60.     page_tail = page_head; \
  61.     link(page_head) = NULL; \
  62.     last_glue = MAX_HALFWORD; \
  63.     last_penalty = 0; \
  64.     last_kern = 0; \
  65.     page_depth = 0; \
  66.     page_max_depth = 0;}
  67.  
  68. int        freeze_page_specs();
  69.  
  70. global    bool    output_active;
  71.  
  72. int        ensure_vbox();
  73. int        box_error();
  74. int        build_page();
  75. int        fire_up();
  76.  
  77. #define    contrib_tail            nest[0].tail_field
  78.